package com.qf.eduadmin.service;

import com.qf.eduadmin.pojo.req.TbUserReq;
import com.qf.eduadmin.pojo.req.TbUserRoleReq;
import com.qf.eduadmin.pojo.resp.ResponseData;
import com.qf.eduadmin.pojo.vo.TbUser;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

public interface TbUserService {
    ResponseData login(TbUserReq tbUserReq, HttpServletRequest request);

    /**
     * 查询所有用户
     * @param page
     * @param limit
     * @return
     */
    ResponseData findAll(Integer page, Integer limit);

    /**
     * 通过id删除用户
     * @param id
     * @return
     */
    ResponseData deleteUserById(Integer id);

    /**
     * 新增用户
     * @param tbUser
     * @return
     */
    ResponseData insertUser(TbUser tbUser);

    /**
     * 更新用户角色
     * @param tbUserRoleReq
     * @return
     */
    ResponseData updateRole(TbUserRoleReq tbUserRoleReq);
}
